package com.roc.service.black;

import java.io.File;
import java.util.Map;

import com.roc.bean.BlackListBean;
import com.roc.pojo.BlackList;
import com.roc.pojo.Operators;
import com.roc.service.ServiceException;

public interface IBlackService {

	public void addBlack(BlackList black,Operators oper) throws ServiceException;
	public void changeStatus(BlackList black,String isused,Operators oper) throws ServiceException;
	public BlackList queryByNo(String acctNo,String cardNo,String licenseNo)throws ServiceException;
	/**
	 * 添加黑名单
	 * @return
	 * @throws ServiceException
	 */
	public int addBlackList(BlackListBean black,Operators op)throws ServiceException;//添加黑名单
	/**
	 * 更改黑名单
	 * @param black
	 * @return
	 * @throws ServiceException
	 */
	public int updateBlackList(BlackListBean black,Operators op)throws ServiceException;//更改黑名单
	/**
	 * 验证是否存在卡号或商户号
	 * @param blackNum
	 * @return
	 * @throws ServiceException
	 */
	public BlackListBean findByBlackNum(String blackNum)throws ServiceException;//验证是否存在
	/**
	 * 批量导入并校验数据
	 * @param file
	 * @param op
	 * @return
	 * @throws ServiceException
	 */
	public Map<String,Object> insertExportBlackList(File file,Operators op) throws ServiceException;
	/**
	 * 删除黑名单
	 * @param blackNum
	 * @return
	 * @throws ServiceException
	 */
	public int delBlackListByBlackNum(String blackNum)throws ServiceException;//删除黑名单
	/**
	 * 黑名单驳回审核
	 * @param blackNum
	 * @return
	 */
	public int blackAuditNoPassService(String blackNum ,Operators op)throws ServiceException;
	/**
	 * 黑名单审核通过
	 * @param black
	 * @param op
	 */
	public int blackAuditPassService(String blackNum, Operators op) throws ServiceException;
}
